package com.dhcc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dhcc.entity.InstitutionRoleDepartmentPosition;
import com.dhcc.mapper.InstitutionRoleDepartmentPositionMapper;
import com.dhcc.service.InstitutionRoleDepartmentPositionService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InstitutionRoleDepartmentPositionServiceImpl extends ServiceImpl<InstitutionRoleDepartmentPositionMapper, InstitutionRoleDepartmentPosition> implements InstitutionRoleDepartmentPositionService {
    @Resource
    private InstitutionRoleDepartmentPositionMapper institutionRoleDepartmentPositionMapper;
    @Override
    public List<String> getResourceIds(String institutionId, String institutionRoleId, String departmentId, String positionId) {
        return institutionRoleDepartmentPositionMapper.getResourceIds(institutionId,institutionRoleId,departmentId,positionId);
    }

    @Override
    public Integer addData(String institutionId, String institutionRoleId, String departmentId, String positionId, String resourceId) {
        return institutionRoleDepartmentPositionMapper.addData(institutionId,institutionRoleId,departmentId,positionId,resourceId);
    }

    @Override
    public Integer deleteData(String institutionId, String institutionRoleId, String departmentId, String positionId, String resourceId) {
        return institutionRoleDepartmentPositionMapper.deleteData(institutionId,institutionRoleId,departmentId,positionId,resourceId);
    }

    @Override
    public Integer delData(String institutionId, String institutionRoleId, String departmentId, String positionId) {
        return institutionRoleDepartmentPositionMapper.delData(institutionId,institutionRoleId,departmentId,positionId);
    }


}
